<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue</title>
</head>
<body>
<div id="app">
  <div v-if="score>90">优秀</div>
  <div v-else-if="score>80">良好</div>
  <div v-else-if="score>70">及格</div>
  <div v-else>不及格</div>
</div>
<script src="vue.js"></script>
<script>
    var vm = new Vue({
        el:'#app',
        data:{
            score:88
        }
    })

   /*  document.addEventListener('scroll',()=>{
        console.log('scroll')
    },{passive:true});//告诉 浏览器我不可以算阻止事件的默认行为 event.preventDefault() */

    if(score>90){

    }else if (score>80){

    }else{

    }
</script>
</body>
</html>